package com.golxen.framework.common.server.cross;


import com.golxen.framework.common.BuiltinPlugin;
import com.golxen.framework.common.server.eServerType;
import com.golxen.framework.executor.GeneralTask;
import com.golxen.framework.netty.session.cross.CrossAgentLinkedSet;

import java.util.Set;

public class ConnectionCheckTask extends GeneralTask {

	@Override
	public void doRun() {

		Set<eServerType> serverType2 = BuiltinPlugin.getServerType();

		for (eServerType serverType : serverType2) {
			if (serverType != eServerType.CROSS && serverType != eServerType.CROSS2) {
				continue;
			}
			CrossAgentLinkedSet.syncCheckMsgToGate(serverType);
		}

	}
}
